<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('查看党建答题记录')" />
</head>
<body class="gray-bg">
	
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>查看党建答题记录</h5>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal m" id="form-record-view" th:object="${examRecord}">
							<input name="id" th:field="*{id}" type="hidden">
							<div class="form-group">
								<label class="col-sm-3 control-label">用户ID：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{userId}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">PK对战ID：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{pkBattleId}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">考试类型：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:if="*{examType} == 1">单人答题</p>
									<p class="form-control-static" th:if="*{examType} == 2">PK答题</p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">配置ID：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{configId}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">得分：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{score}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">总题数：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{totalQuestion}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">答对题数：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{correctQuestion}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">答错题数：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{wrongQuestion}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">用时(秒)：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{useTime}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">答题时间：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{examDate}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">创建者：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{createBy}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">创建时间：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{createTime}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">更新者：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{updateBy}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">更新时间：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{updateTime}"></p>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">删除标志：</label>
								<div class="col-sm-8">
									<p class="form-control-static" th:text="*{delFlag} == '0' ? '正常' : '删除'"></p>
								</div>
							</div>
							<div class="form-group">
								<div class="form-control-static col-sm-offset-9">
									<button type="button" class="btn btn-danger" onclick="closeItem()">关闭</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	<th:block th:include="include :: footer" />
	
	<script type="text/javascript">
		function closeItem() {
			var index = parent.layer.getFrameIndex(window.name);
			parent.layer.close(index);
		}
	</script>
</body>
</html>